package com.ruoyi.web.controller.orderManage;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.Analysis;
import com.ruoyi.system.domain.CheckinMessage;
import com.ruoyi.system.service.AnalysisResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;


@RestController
@RequestMapping("/system/analysis")
public class AnalysisResultContorller extends BaseController {

    @Autowired
    private AnalysisResultService analysisResultService;

    @PreAuthorize("@ss.hasPermi('system:analysis:list')")
    @PostMapping("/list")
    public TableDataInfo list(@RequestBody Map<String,Object> map)
    {
        startPage();
        List<Analysis> list = analysisResultService.selectAnalysisId(map);
        return getDataTable(list);
    }
}
